package com.zou.uaa.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zou.common.entity.UserEntity;
import com.zou.uaa.dao.UserMapper;
import org.springframework.stereotype.Service;

@Service
public class UserService extends ServiceImpl<UserMapper, UserEntity> {

    public UserEntity getUserByUsername(String username) {
        return baseMapper.selectOne(new QueryWrapper<UserEntity>().lambda().eq(UserEntity::getUsername,username));
    }

}
